home *** CD-ROM | disk | FTP | other *** search
- /* LISTING 5 - CIRCLE.C */
- #include "obj.h"
-
- /* file-static getcolor member function */
- static int circle_getcolor(CIRCLE *pc)
- { return pc->color; }
-
-
- /* file-static setcolor member function */
- static int circle_setcolor(CIRCLE *pc,
- int val);
- { return (pc->color = val); }
-
-
- /* global CIRCLE_ACTIONS package */
- CIRCLE_ACTIONS cact =
- {
- circle_getcolor, circle_setcolor
- }; /* initialize the action package */
-
-